{% extends "base.html" %}

{% block title %}{{ post.title }} - 个人博客系统{% endblock %}

{% block content %}
<div class="row">
    <div class="col-md-8 offset-md-2">
        <div class="card">
            <div class="card-body">
                <h1 class="card-title">{{ post.title }}</h1>
                <div class="post-meta mb-3">
                    <i class="fas fa-user"></i> {{ post.author.username }}
                    <i class="fas fa-calendar ms-3"></i> {{ post.date_posted.strftime('%Y年%m月%d日 %H:%M') }}
                </div>
                <hr>
                <div class="card-text" style="white-space: pre-line;">
                    {{ post.content }}
                </div>
                <hr>
                <a href="{{ url_for('index') }}" class="btn btn-secondary">
                    <i class="fas fa-arrow-left"></i> 返回首页
                </a>
            </div>
        </div>
    </div>
</div>
{% endblock %}
